
export default {

  // 设置时间
  timer() {
    let date = new Date();
    let hours = date.getHours(); //小时
    let minute = date.getMinutes(); //分
    let second = date.getSeconds(); //秒
    let time = hours + '时' + minute + '分' + second+ '秒';
    return time;
  },
  // 设置时间
  dater() {
    let date = new Date();
    let year = date.getFullYear(); //当前年份
    let month = date.getMonth(); //当前月份
    let data = date.getDate(); //天
    let calender = year + '年' + (month + 1) + '月' + data + '日';
    return calender
  }
}
